<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Application</title>
    </h:head>
    <h:body>
        <h3>Application</h3>
        <h:form>
            <p>
                First name: <h:inputText value="#{backingBean.firstname}"/>
                <br/><br/>
                Last name: <h:inputText value="#{backingBean.lastname}"/>
                <br/><br/>
                Email: <h:inputText value="#{backingBean.email}"/>
                <br/><br/>
                Area of expertise: 
                <h:selectOneMenu id="to" value="#{backingBean.areaofexp}">
                    <f:selectItem id="science" itemLabel="Science" itemValue="science" />
                    <f:selectItem id="social" itemLabel="Social" itemValue="social" />
                    <f:selectItem id="history" itemLabel="History" itemValue="history" />
                    <f:selectItem id="construction" itemLabel="Construction" itemValue="construction" />
                </h:selectOneMenu>
                <br/><br/>
                Years of experience: <h:inputText value="#{backingBean.years}"/>
            </p>
            <p>
                <h:commandButton value="Submit Application" action="#{backingBean.send}"/>
            </p>
        </h:form>
    </h:body>
</html>